﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainFrame.aspx.cs" Inherits="IsPay.MainFrame" %>

<%@ Import Namespace="DataServer.Entities" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap 使用了2的,IE兼容性更好-->
    <link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <script src="./Scripts/jquery-1.10.2.min.js"></script>
    <script src="./bootstrap/js/bootstrap.min.js"></script>

    <!-- css -->
    <%--<link href="/Content/navmaster.css" rel="stylesheet" />--%>

    <!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
    <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
    <!--[if lt IE 9]>          
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>          
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>       
      <![endif]-->

    <style type="text/css">
        #rightFrame {
            width: 756px;
        }
    </style>
    <script type="text/javascript">
        //var frm = document.getElementById("rightFrame");
        //var frmdiv = document.getElementById("framediv");
        //frm.height = screen.height;
        //frm.width = frmdiv.scrollWidth;
    </script>
   
});

</head>
<body>
    <div class="container">
        <div class="row-fluid">
            <div class="span4">
                <a href="#">
                    <img src="./Images/min_logo.png" alt=""></a><span class="version">商户版</span>
            </div>
            <div class="span4 text-center">
                客服热线:400-026-1121</br>
                固定电话:010-57141313
            </div>
            <div class="span3 text-right">
                <p>账号：<span class="id login-name">kaderu</span></p>
                <p>余额：<strong class="money merchant-balance">59.82</strong>元 </p>

            </div>
            <div class="span1 text-center">
                <a href="Index.aspx" class="logout_user"><i class="icon icon-exit"></i>退出</a>
            </div>
        </div>
    </div>

    <div class="container">
        <div class="navbar">
            <div class="navbar-inner">
                <a class="brand" href="#">i商付</a>
                <ul class="nav">
                    <li class="active"><a href="#">首页</a></li>
                </ul>
                <ul class="nav" style="float: right">
                    <li><a href="#">公司简介</a></li>
                    <li><a href="#">联系我们</a></li>
                </ul>
            </div>
        </div>
    </div>



    <div class="container">
        <div class="row-fluid">
            <div class="span3">
                <%if (Session["MENUS"] != null)
                    { %>
                <%List<ShowMenu> lsShowMenu = (List<ShowMenu>)Session["MENUS"]; %>
                <div class="accordion" id="accordion2">
                    <%foreach (ShowMenu fshow in lsShowMenu)
                        { %>
                    <div class="accordion-group">
                        <div class="accordion-heading">
                            <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse<%=fshow.RootMenu.MenuId %>"><%=fshow.RootMenu.MenuName %>
                            </a>
                        </div>
                        <%if (fshow.LsSonMenu.Count() > 0)
                            { %>
                        <div id="collapse<%=fshow.RootMenu.MenuId %>" class="accordion-body collapse">
                            <%List<ShowMenu> lsson = fshow.LsSonMenu; %>
                            <%foreach (ShowMenu sshow in lsson)
                                { %>

                            <div class="accordion-inner">
                                <a class="text-right" href="<%=sshow.RootMenu.HtmlName %>" target="rightFrame" style="margin-left: 10px"><%=sshow.RootMenu.MenuName %></a>
                            </div>


                            <%} %>
                        </div>
                        <%} %>
                    </div>
                    <%} %>
                </div>

                <%} %>
            </div>
            <div class="span9" id="framediv" >
                <iframe id="rightFrame" name="rightFrame" src="welcome.html" frameborder="no" border="0" marginwidth="0" marginheight="0"  height="1000px"></iframe>

            </div>
        </div>
    </div>
</body>
</html>

